package com.refusea.train.domain.helper

import com.refusea.train.domain.entity.School
import com.refusea.train.mapper.SchoolMapper
import org.springframework.web.bind.annotation.RestController

/**
 * @author Zhang Yan 2024/4/3
 **/
@RestController
class SchoolHelper(private val schoolMapper: SchoolMapper) {

    fun all(): List<School> {
        return schoolMapper.list()
    }
}
